import request from '@/utils/request'
const api_name_soAccount = '/sale/soAccount'
export default {
  // 获取所有的字典
  dict() {
    return request({
      url: `${api_name_soAccount}/dict`,
      method: 'get'
    })
  },
  // 查询所有的选货单信息 并分页
  findSoAccountAll(currentPage, limit, soAccountVo) {
    return request({
      url: `${api_name_soAccount}/findSoAccountAll/${currentPage}/${limit}`,
      method: 'Post',
      data: soAccountVo
    })
  },
  // 添加选货单
  addSoAccount(addAccount) {
    return request({
      url: `${api_name_soAccount}/addAccount`,
      method: 'Post',
      data: addAccount
    })
  },
  // 更新对应的选货单状态
  updateSoAccountStatus(SoAccountUpdateVo) {
    return request({
      url: `${api_name_soAccount}/updateSoAccountStatus`,
      method: 'post',
      data: SoAccountUpdateVo
    })
  },

  // 获得excel
  exportDataToExcel(currentPage, limit) {
    return request({
      url: `/need/soaccountFile/soaccount/file/${currentPage}/${limit}`,
      method: 'get'

    })
  }

}
